define([
  'utils/Conf'
], function(Conf){
  var write = function(type, msg, args) {
    console.log(type + " -> " + msg);
    for(var i = 1, count = args.length; i < count; i++) {
      console.log(args[i]);
    }
    if(args.length > 1) {
      console.log("------------------");
    }

  };
  
  var Logger = {
    debug: function(msg) {
      if('debug'.toUpperCase() === Conf.logger.toUpperCase()) {
        write("Debug", msg, Array.prototype.slice.call(this, 1, arguments));
      }
    }
  };

  return Logger;
});